<template>
  <div class="plinput">
    <input type="text" :value="intext" :placeholder="placeholder" @input="input" />
  </div>
</template>

<script>
export default {
  name: "plinput",
  props: {
    placeholder: {
      type: String,
      default: "请输入内容",
    },
    intext:String
  },
  methods: {
    input(e) {
      //   console.log(e.target.value);
      this.$emit("input", e.target.value);
    },
  },
};
</script>

<style lang="scss" scoped>
.plinput {
  input {
    height: 30px;
    border: 1px solid purple;
    border-radius: 10px;
    outline-style: none;
    box-sizing: border-box;
    padding-left: 10px;
    width: 50%;
  }
}
</style>